package com.example.messangersms;

public class Message  {

	private int senderId; // this specifies what type of message it is 
	private String commentInfo; // the actual message is stored here 
	private int recieverId;
     public Message(){
    	 
    	 
     }
	
	public Message(int type,String message)
	{
		senderId =type;
		commentInfo =message;
		
	}
	public Message(int senderId, int recieverId, String message)
	{
		this.senderId =senderId;
		this.recieverId = recieverId;
		commentInfo =message;
		
	}
   public void setSenderId(int id)
   {
	   senderId = id;
   }
   public void setComment(String com)
   {
	   commentInfo = com;
   }
   public int getRecieverId()
   {
	   return recieverId;
   }
   public int getSenderId(){
	   return senderId;
   }
   public void setRecieverId(int re)
   {
	   recieverId = re;
   }
	public String getMessage(){
		return commentInfo;
	}
	
	public int SenderId(){
		return senderId;
	}
  public String toString(){
	  return this.commentInfo;
  }
	
}
